# == Schema Information
#
# Table name: fellows
#
#  id             :bigint(8)        not null, primary key
#  user_id        :bigint(8)
#  created_at     :datetime         not null
#  updated_at     :datetime         not null
#  fellow_user_id :bigint(8)
#  status         :integer
#

class Fellow < ApplicationRecord

  # belongs_to :user
  belongs_to :user
  belongs_to :fellower,class_name:'User',foreign_key: :fellow_user_id

  enum status: {fellowed: 1, unfellowed: 2}
  default_value_for :status, 1

end
